#@adminLayout()
#define main()
<div class="jbolt_page">
    <div class="jbolt_page_content">
        <div class="row" >
            <div class="col-12">
                <form class="form" id="becRetailerForm"  action="/auth/mall/market/update_market_retailer" method="post" onsubmit="return RefreshsubmitForm(this);">

                    <input type="hidden" name="market.id" value="#(market.id??)">
                    <div class="form-group row">
                        <label class="col-4 col-form-label">名称</label>
                        <div class="col-7">
                            <input class="form-control" autocomplete="off" type="text" data-rule="required"   name="market.name" value="#(market.name??)">
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-4 col-form-label">商家名称</label>
                        <div class="col-7">
                            <input class="form-control" type="text" data-rule="required"   readonly="readonly" name="retailer_name" value="#(market.retailer_name??)">
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-4 col-form-label">商品类型</label>
                        <div class="col-7">
                            <input class="form-control" type="text" data-rule="required"   readonly="readonly" name="commodity_type_name" value="#(market.commodity_type_name??)">
                        </div>
                    </div>

                    <div class="form-group row" >
                        <label class="col-4 col-form-label">摘要:</label>
                        <div class="col-7">
                            <textarea class="form-control" type="text"  maxlength="100"  name="market.brief" data-value="#(market.brief??)">#(market.brief??)</textarea>
                        </div>
                    </div>


                    <div class="form-group row">
                        <label class="col-4 col-form-label">平台抽成比(%)</label>
                        <div class="col-7">
                            <input type="number" autocomplete="off" data-rule="required" data-tips="请输入平台抽成比" class="form-control" min="0" max="100" placeholder="请输入平台抽成比" data-tips="请输入平台抽成比"  name="market.platform_commission" value="#(market.platform_commission??)" >
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-4 col-form-label">分销商积分比(%)</label>
                        <div class="col-7">
                            <input type="number" autocomplete="off" data-rule="required" data-tips="请输入分销商积分比" class="form-control" min="0" max="100" placeholder="请输入分销商积分比"   name="market.spreader_credit" value="#(market.spreader_credit??)" >
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-4 col-form-label">折扣比(%)</label>
                        <div class="col-7">
                            <input type="number" autocomplete="off" data-rule="required" data-tips="请输入折扣比" class="form-control" min="0" max="100" placeholder="请输入折扣比"   name="market.discount" value="#(market.discount??)">
                        </div>
                    </div>



                    <div class="form-group text-center">
                        <button type="submit"   class="btn btn-success" ><i class="fa fa-check mr-2"></i>提交</button>
                    </div>
                </form>

            </div>

        </div>
    </div>
</div>
#end

#define js()
#end
